package iet.jxufe.cn.android.productanti_counterfeitingtraceabilitysystem.activity.secondActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;

import iet.jxufe.cn.android.productanti_counterfeitingtraceabilitysystem.R;

public class ActivityAppInfo extends AppCompatActivity {

    private TextView webLink;

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_app_info);

        webLink = findViewById(R.id.webLink);
        webLink.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // Open the web page when link is clicked
                Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://gitee.com/jzl740/android-course-design"));
                startActivity(browserIntent);
            }
        });
    }
}